﻿using SheepStorage.Domain.Entity;
using SheepStorage.Repository.Interface;
using SheepStorage.Service.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SheepStorage.Service.DataImp
{
    /// <summary>
    /// 提示
    /// </summary>
    public class PendingPromptService: IPendingPromptService
    {
        private readonly IBaseRepository<PromptModel> prompt;
        public PendingPromptService(IBaseRepository<PromptModel> prompt)
        {
            this.prompt = prompt;
        }
        /// <summary>
        /// 提交报表
        /// </summary>
        /// <param name="PromptType"></param>
        /// <returns></returns>
        public async Task<List<PromptModel>> GetPromptModel(int PromptType)
        {
            var list = prompt.GetAll().Where(s => s.PromptType == PromptType).ToList();
            return list;
        }
    }
}
